package com.ys.enume.storage;

public class TccOnlinePutonEnum {
	
	/*
	 * 质检上架状态
	 */
	public enum PutonStatus {
		NOT("待上架", 0), YES("已上架", 1);
		public String name;
		public Integer value;

		private PutonStatus(String name, Integer value) {
			this.name = name;
			this.value = value;
		}

		public static String getName(int value) {
			for (PutonStatus e : PutonStatus.values()) {
				if (e.value == value) {
					return e.name;
				}
			}

			return "";
		}
	}
}
